package com.gm.wj.dao;

import com.gm.wj.entity.JotterArticle;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * @author Evan
 * @date 2020/1/14 20:40
 */
public interface JotterArticleDAO  extends JpaRepository<JotterArticle,Integer> {
    JotterArticle findById(int id);

    // jpa分页查询  多条件
    Page<JotterArticle> findAll(Specification<JotterArticle> sysStudentSpecification, Pageable pageable);
}
